<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="http://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>


  <div id="app">
    <p>{{message}}</p>

    <p v-text="template"></p>


    <button @click="handle">点击1</button>
    <button @click="handle2()">点击2</button>
  </div>
  <script>
    const app = new Vue({
      el: "#app",
      data: {
        message: "llhuang10",
        template: '<h1>哈哈</h1>'
      },
      methods: {
        handle() {
          alert(123)
        },
        handle2: function () {
          alert(456)
        }
      }
    });
  </script>
</body>
</html>
